<?php $this->load->view('common/admin_header');?>
<div class="block">
  <div class="block_head">
    <div class="bheadl"></div>
    <div class="bheadr"></div>
    <h2>編輯/新增</h2>
    <ul>
      <li><a href="<?=site_url('admins/languages')?>">取消</a></li>
    </ul>
  </div>
  <!-- .block_head ends -->
  <div class="block_content">
    <?php $this->load->view('common/notify');?>
  <form id="form" action="<?=site_url('admins/languages/modify');?>" method="post" enctype="multipart/form-data">
    <input type="hidden" name="edit_id" value='<?=set_value('edit_id',isset($edit_id)?$edit_id:'')?>' />
      <p>
        <label>語言:</label>
        <input type="text" class="text small" name="name" value='<?=set_value('name',isset($name)?$name:'')?>'/>
      </p>
      <p>
        <label>資料夾:</label>
        <input type="text" class="text small" name="filename" value='<?=set_value('filename',isset($filename)?$filename:'')?>'/>
      </p>
      <p>
        <label>語言代碼(待定):</label>
        <input type="text" class="text small" name="code" value='<?=set_value('code',isset($code)?$code:'')?>'/>
      </p>
      <p>
        <label>排序:</label>
        <input type="text" class="text small" name="sort_order" value='<?=set_value('sort_order',isset($sort_order)?$sort_order:0)?>'/>
      </p>
      <p>
        <label>狀態:</label>
        <input type="radio" class="radio" name="status" value="1" <?=set_radio('status', '1', TRUE); ?> <?=isset($status) && $status==1?'checked':''?> />
        <span>啟用</span>
        <input type="radio" class="radio" name="status" value="2" <?=set_radio('status', '2'); ?> <?=isset($status) && $status==2?'checked':''?> />
        <span>停用</span></p>
      <p>
        <input class="btn btn-primary" type="submit" name="btn_save" value="儲 存" />
        <input class="btn" type="reset" value="重 置"/>
      </p>
    </form>
  </div>
  <!-- .block_content ends -->
  <div class="bendl"></div>
  <div class="bendr"></div>
</div>
<!-- .block ends -->
<?php $this->load->view('common/admin_footer');?>


